//本文件由程序自动生成,请不要自行修改
using System;
using fastCSharp;

#if NotFastCSharpCode
#else
#pragma warning disable
namespace diantou.webSocket.exam
{

}namespace diantou.webSocket.exam
{

}
namespace diantou.webSocket
{


        /// <summary>
        /// WEB服务器
        /// </summary>
        public partial class webServer : fastCSharp.net.tcp.http.domainServer.viewServer<int>
        {
            /// <summary>
            /// webSocket处理索引集合
            /// </summary>
            protected override string[] webSockets
            {
                get
                {
                    string[] names = new string[2];
                    names[0] = "/exam/image";
                    names[1] = "/exam/log";
                    return names;
                }
            }
            /// <summary>
            /// webSocket调用处理
            /// </summary>
            /// <param name="callIndex"></param>
            /// <param name="socket"></param>
            /// <param name="socketIdentity"></param>
            protected override void callWebSocket(int callIndex, fastCSharp.net.tcp.http.socketBase socket, long socketIdentity)
            {
                switch(callIndex)
                {
                    case 0: loadWebSocket(new diantou.webSocket.exam.image(), socket, socketIdentity); return;
                    case 1: loadWebSocket(new diantou.webSocket.exam.log(), socket, socketIdentity); return;
                }
            }
        }
}
#endif